package org.sdau.rotten.library.dao;

import org.apache.ibatis.annotations.Mapper;
import org.sdau.rotten.library.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface UserDAO {

    User isExist(int Id, String password);

    int delete(int Id);

    List<User> selectAll();

    int update(int oldId, int newId, String password, String authority);

    List<User> search(String userId);

    int insert(int userId, String password, String authority);

    User selectById(String UserId);

    boolean register(Integer userId,String password,String email,String authority);
}
